package com.today.usercenter.network.api;

import com.today.usercenter.network.entity.ConsumeResultEntity;
import com.today.usercenter.network.entity.TaskInfoEntity;
import com.today.usercenter.network.entity.TaskResultEntity;
import com.today.usercenter.network.entity.TaskUserInfoEntity;

import io.reactivex.Observable;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by cgm on 2020/2/23.
 * 任务所有的API 接口
 */

public interface TaskService {
    @POST("tasks/query/")
    Observable<TaskInfoEntity> getTaskInfo();

    @GET("tasks/user/add/")
    Observable<TaskResultEntity> gainScore(@Query("taskid") int type);

    @GET("tasks/points/consume/")
    Observable<ConsumeResultEntity> consumeScore(@Query("points") int points);
}
